package com.tledu.production.mapper.crafts;

import com.tledu.production.model.crafts.TechnologyModel;
import com.tledu.production.model.crafts.TechnologyRequirementModel;
import lombok.AllArgsConstructor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 赵若松
 */
@Mapper
@Repository
public interface TechnologyMapper {
    /*********************工艺管理**********************/
    //分页查询
    List<TechnologyModel> list();
    //根据工艺名称查询
    List<TechnologyModel>selectByName(@Param("type")String condition,@Param("searchText") String conditionName);
    //添加工艺
    Integer add(TechnologyModel technologyModel);
    //编辑工艺
    Integer edit(TechnologyModel technologyModel);
    //删除工艺
    Integer deleteByName(String technologyId);
    //根据id查询所有
    TechnologyModel findById(String technologyId);
    //查询名字
    List<TechnologyModel> cloud();


}
